class Base{
     public int x;
     public int y;

    public Base(int x, int y) {
        this.x = x;
        this.y = y;
    }
}
 class Sub extends Base{
    public int z;
    public Sub (int x,int y,int z){
        super(x,y);
        this.z = z;
    }
    public void func(){
        System.out.println(x*y*z);
    }

}
public class Test {
    public static void main(String[] args) {
        Sub sub = new Sub(1,2,3);
        sub.func();
    }

}
